package com.naiterui.ehp.bs.doctor.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import lombok.Data;

/**
 * @author guoyongxiang
 * @date 2020/2/16 14:26
 * @since 1.0.0
 */
@Data
@Entity
@Table(name = "record_work_info")
public class RecordWorkInfo implements Serializable {

    private static final long serialVersionUID = 7951358789410971470L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    /**
     * 用户编号
     */
    @Column(name = "user_code", nullable = false)
    private String userCode;

    /**
     * 开始日期
     */
    @Column(name = "start_date")
    private Date startDate;

    /**
     * 结束日期
     */
    @Column(name = "end_date")
    private Date endDate;

    /**
     * 单位名称
     */
    @Column(name = "employer")
    private String employer;

    /**
     * 技术职务
     */
    @Column(name = "title")
    private String title;

    /**
     * 证明人
     */
    @Column(name = "certifier")
    private String certifier;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 修改时间
     */
    @Column(name = "changed_at")
    private Date changedAt;

    /**
     * 修改人
     */
    @Column(name = "changed_by")
    private String changedBy;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;
}
